﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
<% if (Request.IsAuthenticated) { %>      

    <% using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) { %>
 <div style="float:left;">       WELCOME, <% if (Request.IsAuthenticated)
               { %>
            <%:  User.Identity.Name %>
            <% } %>
        <%: Html.AntiForgeryToken() %>
        <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></div>
    <% } %>
<% } else { %>
    
<% } %>